export interface ROOM_LIST_TYPE {
  id: number;
  title: string;
  avatar: string;
  desc: string;
  timestamp: string;
}

export interface MESSAGE_TYPE {
  id: string;
  content: string;
  timestamp: string;
  user: {
    id?: string;
    name?: string;
    avatar?: string;
  };
  isSuccess:boolean;
}

export const LOGIN_USER_LIST = [
  {
    id: 'zhangsan',
    name: '张三',
    avatar: 'https://avatars.githubusercontent.com/u/24469566?v=4',
  },
  {
    id: 'luke',
    name: '卢克',
    avatar: 'https://avatars.githubusercontent.com/u/24469566?v=4',
  },
]

export const ROOM_LIST: ROOM_LIST_TYPE[]= [
  {
    id:1,
    title:'房间1',
    avatar: 'https://avatars.githubusercontent.com/u/24469566?v=4',
    desc:'房间1描述',
    timestamp:'2021-01-01 12:00:00',
  },
  {
    id:2,
    title:'房间2',
    avatar: 'https://avatars.githubusercontent.com/u/24469566?v=4',
    desc:'房间2描述',
    timestamp:'2021-01-01 12:00:00',
  },
  {
    id:3,
    title:'房间3',
    avatar: 'https://avatars.githubusercontent.com/u/24469566?v=4',
    desc:'房间3描述',
    timestamp:'2021-01-01 12:00:00',
  },
  {
    id:4,
    title:'房间4',
    avatar: 'https://avatars.githubusercontent.com/u/24469566?v=4',
    desc:'房间4描述',
    timestamp:'2021-01-01 12:00:00',
  },
]

export const ROOM_LIST_OPT= [
  {
    value: 'edit',
    content: 'Edit',
  },
  {
    value: 'delete',
    content: 'Delete',
  },
]
